package com.dk.api;

import com.dk.pojo.CodePart;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("mes-code-part")
public interface CodePartServiceAPI {
    @GetMapping("/codePart/selectPartByRuleId")
    List<CodePart> selectPartByRuleId(@RequestParam Long ruleId);

    @PutMapping("/codePart/updateCodePartAPI")
    void updateCodePartAPI(@RequestBody CodePart codePart);
}
